package com.topera.eduservice.service;

import com.topera.eduservice.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author puzhenjiang
 * @since 2020-05-18
 */
public interface EduChapterService extends IService<EduChapter> {

    /**
     * 根据课程id获取课程大纲信息
     * @param courseId
     * @return
     */
    List<EduChapter> getAllChapterBycourseId(String courseId);

    /**
     * 删除章节信息
     * @param id
     */
    void removeChapterByCourseId(String id);

}
